package com.groupa.project1.chat;

import com.groupa.project1.chat.interfaces.Content;
import com.groupa.project1.chat.interfaces.SearchResult;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;



/**
 *
 * @author groupA
 */
public class SearchResultMessage extends Msg implements SearchResult , Serializable{
    /** Implementacion de la interfaz SearchResult */

    private HashMap<String, Content> results;
    boolean isPhoto;
    String origin;
    public SearchResultMessage(){
        this.results = new HashMap<String, Content>();
    }

    public HashMap<String, Content> getContent(){
        return results;
    }
       //Añadimos contenido
    
    public void addContent(String name, Content C) {
        results.put(name,C);
    }
    public boolean isPhoto(){
        return isPhoto;
    }
    public void setIsPhoto(boolean isPhoto){
        this.isPhoto = isPhoto;
    }
    public void setOrigin(String origin){
        this.origin = origin;
    }
    public String getOrigin(){
        return origin;
    }

}